package cn.wolfcode.trip.base.domain;

import com.alibaba.druid.support.json.JSONUtils;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

import java.util.HashMap;
import java.util.Map;

@Getter@Setter
@AllArgsConstructor
@NoArgsConstructor
public class Sign extends BaseDomain {

    public static final int STATE_MANYSIGN= 2;
    public static final int STATE_SIGN = 1;
    //日期
    private String date;
    //状态,区分签到
    private Integer state;

    private User user;

    private Integer point;


    public String getJson(){
        Map<String,Object> map = new HashMap<>();
        map.put("id",getId());
        return JSONUtils.toJSONString(map);
    }




}